﻿using ServiceLibrary.Callbacks;

namespace ServiceLibrary
{
    public class CentralTerminal
    {
        public ICentralTerminalCallback CallbackChannel { get; private set; }

        public CentralTerminal(ICentralTerminalCallback callbackChannel)
        {
            CallbackChannel = callbackChannel;
        }

        public void StationChanged(PumpStation station)
        {
            CallbackChannel.OnWaterlevelChanged(station.Id, station.Waterlevel);
        }
    }
}